WakeUpProcess
WakeUpProcess Make a process eligible to receive CPU time
ProcessSerialNumber *PSN ; the process serial number
returns Error Code; 0=no error
You use the WakeUpProcess to makes a process suspended by
WaitNextEvent eligible to receive CPU time.
PSN is a pointer to the process serial number of the process designated to
receive CPU time.
Returns: an operating system Error Code.
noErr (0) No error
procNotFound (-600) Suspended process with specified process serial
number does not exist

Notes: When a process specifies a nonzero value for the sleep parameter in the
WaitNextEvent function, and there are no events for that process
pending in the event queue, the process is suspended. This process remains
suspended until the time specified in the sleep parameter expires or an
event becomes available for that process. You can use WakeUpProcess to
make the process eligible for execution before the time specified in the sleep
parameter expires.
The WakeUpProcess function does not change the order of the processes
scheduled for execution; it only makes the specified process eligible for
execution.
The process serial number specified in the PSN parameter should be a
valid process serial number returned from LaunchApplication ,
GetNextProcess , GetFrontProcess , GetCurrentProcess , or a
high-level event.